<!-- 0分除情绪 -->
<template>
	<view>
		<view class="top"></view>
		<view class="body">
			<view class="kongs"></view>
			<view class="textTlie">测评结果说明</view>
			<block v-if="type !='情绪'">
			<view class="uimgas">
				<image :src="icon12png" mode="aspectFit" class="img"></image>
			</view>
			<view class="texts2">{{texts}}</view>
			</block>
			<block v-else>
				<view class="qx_texts">情绪指数</view>
				<view class="qxBgList contenr">
					<image src="../static/img/3-2.png" mode="aspectFit" class="qx_32"></image>
					<image src="../static/img/biao.png" mode="aspectFit" class="qx_biao"></image>
				</view>
				<view class="qx_text_1">太棒了你几乎没有情绪问题，每天都是元气满满的天使啊~ </view>
				<view class="qx_lin"></view>
				<view class="qx_text_2">虽然在情绪方面没有任何问题，但也不能掉以轻心，快来测评整体健康水平吧~ </view>
			</block>
			<!-- <view class="ric contenr" v-if="">
				<view class="ricImg contenr" @click="goToUrl">
					<text>健康自测</text>
					<image src="../static/image/ico_5_1.png" mode="aspectFit" class="icons"></image>
				</view>
				
			</view> -->
		</view>
		<view class="bottom_1 dis dis2 dis1"  @click="goTijin"  v-if="inflamed==1 ">一键返回体检报告</view>
		<!-- <view class="kong">
			
		</view> -->
		<!-- <btns></btns> -->
		
	</view>
</template>

<script>
	let app = getApp().globalData;
	import config from '@/common/js/config.js';
	import btns from '@/components/botn.vue';
	import getRutdata from '@/common/js/indexFx.js';
	export default {
		// props: {
		// 	texts:{
		// 		type:String
		// 	}
		// },
		components:{
			btns
		},
		data() {
			return {
				texts:'你选的所有症状都是正常的哦！不过也不要大意，日常生活中还需要继续关注自己身体状况，有情况就可以测评一下~',
				type:'',
				icon12png:`${config.imgUrl}icon12.png`,
				inflamed:app.inflamed,
				indexRults:app.indexRults
				// inflamed:1,
				// indexRults:1
			};
		},
		created() {
			this.texts = app.resultData.template;
			this.type = app.resultData.type;
			console.log(this.type)
		},
		methods:{
			goToUrl(){
				uni.redirectTo({
					url:'/second/me/everyday/everyday',
				})
			},
			goTijin(){
				getRutdata.everyday().then(res => {
					if (res.data.issuccess == 1) {
						let {
							data
						} = res.data;
						app.progresstext = data.age
						app.progresstext1 = data.score_zhf
						app.retuData = data;
						if (data.age == -1) {
							app.progresstext = '?'
						}
						if (data.score_zhf == -1) {
							app.progresstext1 = '?'
						}
						let list = data.weidulist;
						let listpo = [];
						let values = [];
						for (let i = 0; i < list.length; i++) {
							let num = (list[i].score).toFixed(0);
							let name = `${list[i].weidu}\n${num}`;
							if (list[i].weidu == '上火' && list[i].isempty == 1) {
								name = `${list[i].weidu}\n？`;
							}
							listpo.push({
								name,
								max: 100
							});
							values.push(list[i].score)
						}
						app.listRadar1 = listpo;
						app.value1 = values;
						uni.redirectTo({
							url: `/second/me/everydayResult/everydayResult`
						})
					}
				})
			}
		}
	}
</script>

<style lang="scss" >
	@import "../common/css/flex.css";
	@import "../common/css/index.scss";
	page{
		background-color: #FBF2D6;
	}
	.top {
		width: 750upx;
		height: 32upx;
	}
	.body{
		width: 686upx;
		min-height: 200upx;
		background: #FFFFFF;
		border-radius: 24upx;
		// position: absolute;
		top: 48upx;
		// left: 32upx;
		margin: auto;
		padding-bottom:60upx ;
		.kongs{
			width: 100%;
			height: 1upx;
		}
		.textTlie{
			width: 216upx;
			height: 50upx;
			font-size: 36upx;
			margin: auto;
			margin-top: 56upx;
			font-family: $typeface;
			font-weight: 500;
			color: #333333;
			
		}
		.uimgas{
			width: 614upx;
			height: 234upx;
			margin: auto;
			margin-top: 71upx;
			// border: 1px solid red;
			.img{
				width: 614upx;
				height: 234upx;
			}
		}
		.texts2{
			width: 600upx;
			min-height: 45upx;
			font-size: 32upx;
			font-family: $typeface1;
			font-weight: 400;
			color: #333333;
			margin: auto;
			margin-top: 49upx;
			// margin-left: 32upx;
		}
		.line{
			width: 620upx;
			height: 1px;
			margin-top: 48upx;
			margin-bottom: 33upx;
			margin-left: 33upx;
		}
		.text_s{
			width: 637upx;
			min-height: 80upx;
			font-size: 28upx;
			font-family: $typeface1;
			font-weight: 400;
			color: #999999;
			margin: auto;
		}
		.btn{
			width: 179upx;
			height: 56upx;
			margin: auto;
			margin-top: 32upx;
			.btns{
				width: 179upx;
				height: 56upx;
			}
		}
		.ric{
			width: 100%;
			height: 56upx;
			// border: 1px solid red;
			margin-top: 120upx;
			.ricImg{
				width: 175upx;
				height: 56upx;
				font-size: 26upx;
				font-family: $typeface;
				font-weight: 500;
				color: #333333;
				background-color: #FFD344;
				border-radius: 48upx;
				.icons{
					width: 25upx;
					height: 25upx;
					margin-left: 10upx;
				}
			}
		}
		.qx_texts{
			width: 112upx;
			height: 40upx;
			font-size: 28upx;
			font-family: $typeface1;
			font-weight: 500;
			color: #999999;
			margin-left: 32upx;
			margin-top: 67upx;
		}
		.qxBgList{
			width: 616upx;
			height: 129upx;
			background-image: url(../static/img/qxbg.png);
			background-size: 100% 100%;
			margin: auto;
			margin-top: 12upx;
			position: relative;
			.qx_32{
				width: 80upx;
				height: 80upx;
			}
			.qx_biao{
				width: 21upx;
				height: 26upx;
				position: absolute;
				bottom: -5px;
				left: 57upx;
			}
		}
		.qx_text_1{
			width: 622upx;
			height: 90upx;
			font-size: 32upx;
			font-family: $typeface;
			font-weight: 400;
			color: #333333;
			margin: auto;
			margin-top: 45upx;
		}
		.qx_lin{
			width: 620upx;
			height: 1px;
			background: #EDEDED;
			margin: auto;
			margin-top: 67upx;
		}
		.qx_text_2{
			width: 637upx;
			height: 80upx;
			font-size: 28upx;
			font-family: $typeface1;
			font-weight: 400;
			color: #999999;
			margin: auto;
			margin-top: 33upx;
		}
	}
	.kong{
		width: 100%;
		height: 600upx;
	}
	.bottom_1{
		width: 684upx;
		height: 88upx;
		background: #FFD344;
		border-radius: 44upx;
		margin: auto;
		font-size: 32upx;
		font-family: PingFangSC-Medium, PingFang SC;
		box-shadow: 0px 9upx 25upx 0px #FFE07A;
		font-weight: 500;
		color: #333333;
		margin-top: 30rpx;
	}

</style>
